home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Internet / WWW / fly / Makefile < prev    next >
Encoding:
Makefile  |  1996-02-11  |  572 b   |  26 lines

  1. #This makefile should suffice on most Unix systems. For other systems,
  2. #you may well need to rewrite it. 
  3. #
  4. # If you already have gd installed, use the line below and comment out the
  5. # following line
  6. #       GD = /path/to/gd/directory
  7.         GD = gd1.2
  8.         CC = cc
  9.     CFLAGS = -w -I$(GD) -arch m68k -arch i386 -arch hppa -arch sparc -O2
  10.       LIBS = -L$(GD) -lgd -lm
  11.  
  12. all: gd fly
  13.  
  14. gd: $(GD)
  15.     cd $(GD); make
  16.  
  17. fly.o: fly.c fly.h
  18.     $(CC) -c $(CFLAGS) fly.c
  19.  
  20. fly: fly.o
  21.     $(CC) $(CFLAGS) -o fly fly.o $(LIBS)
  22.  
  23. clean:
  24.     rm -f fly.o fly temp.gif core; cd gd1.2; make clean;
  25.  
  26.